<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.lanting.meetingserver.domain.MeetingInfo"%>
<%@page import="com.lanting.meetingserver.domain.MeetingPPTS"%>

<%
	Object object = request.getAttribute("data");
	List<MeetingInfo> list = null;
	if(object != null){
		list = (List<MeetingInfo>)object;
		%><ul><%
		for(MeetingInfo info : list){
			%><li><%
			String meetingName = info.getName();
			if(meetingName.length() >12){
				meetingName = meetingName.substring(0,11)+"...";
			}
		%>
			<div class="meetingTitle">
				<span class="opt_icon"><a href="#" url="Meeting/del/<%=info.getId()%>" class="tree_button del delMeeting"></a></span>
				<span class="opt_icon"><a style="margin-left: 10px" href="javascript:void(0);" id="uploadppt-<%=info.getId()%>" name="uploadPPT" mid="<%=info.getId()%>" rel="#tblUploadDlg" class="AddItem trigger tree_button upload"></a></span>
				<span mid=<%=info.getId()%> class="title" url="Meeting/get/<%=info.getId()%>"><%=meetingName%></span>
				<!-- 
				<a name="addMeeting" href="#" class="tree_button add_items"></a>
				 -->
			</div>
			<ul class="pptlist">
			<%
				List<MeetingPPTS> ppts = info.getPpts();
				if(ppts != null){
					for(MeetingPPTS ppt : ppts){
						String pptSubject = ppt.getSubject();
						if(pptSubject != null && pptSubject.length() >12){
							pptSubject = pptSubject.substring(0,11)+"...";
						}
						%>
							<li>
								<span class="opt_icon"><a href="PPT/del/<%=ppt.getPptId() %>" name="deletePPT" class="tree_button del"></a></span>
								<span class="opt_icon"><a href="#" name="releasePptContrl" class="tree_button releaseLock" onclick="releaseLock('<%=info.getId() %>','<%=ppt.getPptId() %>');return false;"></a></span>
								<span class="title"><%=pptSubject%></span>
							</li>
						<%
					}
				}
			%>
			</ul>
			</li>
		<%
		}
		%></ul><%
	}%>



